Skip to content

feat(interpreter): nameref resolution for associative array operations#821

Merged
chaliy merged 1 commit intomainfrom
fix/issue-801-nameref-assoc-arrays
Mar 26, 2026
Merged

feat(interpreter): nameref resolution for associative array operations#821
chaliy merged 1 commit intomainfrom
fix/issue-801-nameref-assoc-arrays

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Mar 26, 2026

Summary\n\n- Resolve namerefs in ${!ref[@]} (array key listing)\n- Resolve namerefs in ${#ref[@]} (array length)\n- Resolve namerefs in ref+=("value") (array append assignment)\n\nCloses #801\n\n## Test plan\n\n- [x] Nameref assign key to caller's associative array\n- [x] Nameref iterate keys of associative array\n- [x] Nameref append to caller's indexed array\n- [x] Two namerefs in same function (harness pattern)\n- [x] Nameref with associative array length\n- [x] Nameref overwrite existing key\n- [x] All tests green

Resolve namerefs in:
- ${!ref[@]} (array key listing via ArrayIndices)
- ${#ref[@]} (array length via ArrayLength)
- ref+=("value") (array append via AssignmentValue::Array)

Closes #801
@chaliy chaliy merged commit 7962756 into main Mar 26, 2026
18 of 23 checks passed
@chaliy chaliy deleted the fix/issue-801-nameref-assoc-arrays branch March 26, 2026 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant